/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BusinessLogic;

import EntityState.*;
import java.util.ArrayList;
import javax.ejb.Local;

/**
 *
 * @author James
 */
@Local
public interface CustomerBeanLocal {
    public int checkAvailability(String username);
    public int registerAccount(String username, String password, String IC, String firstName, String lastName, String gender, String countryCode, String phone, String email, String country, String city, long birthday);
    public int activateUser(String id);
    public CustomerState login(String username, String password, String timezone);
    public ArrayList getInfo(int action, long id);
    public ArrayList reserve(String username, String name, String countryCode, String phone, int numOfPeople, long startTime, long endTime, long reservableUnitID, long[] listOfVouchers);
    
    //Cube functions
    public int buyItem(long itemId, int quantity, String userName, String payPalId);
    public int checkVoucher(long voucherId, String username);
}
